function start(){
    
    var oDl = document.getElementById('dl')
    var oZc = document.getElementById('zc')
    oDl.onclick = function(){
        // console.log(1);
        var oAccount = document.getElementById('account').value
        var oPwd = document.getElementById('pwd').value
        if(oAccount.length==0){
            console.log(oAccount);
            return alert('账号或者密码不能为空')
        }
        if(oAccount == 'asd' && oPwd == '123456'){
            window.location.href = "index.html"
        }else {
            return alert('账号或者密码有误')
        }   
       
    }
    
    // 鼠标点击到
    var oPwd = document.getElementById('pwd')
    oPwd.onfocus = function(){
        var item = document.getElementById('item')
        var itemm = document.getElementById('itemm')
        // console.log(item);
        item.style.display = "none"
        itemm.style.display = "block"
    }
    // 鼠标移除   
    oPwd.onblur = function(){
        var item = document.getElementById('item')
        var itemm = document.getElementById('itemm')
        itemm.style.display = "none"
        item.style.display = "block"

    }

    
}
start()